From: Keir Fraser Date: Mon, 19 May 2008 08:42:18 +0000 (+0100) Subject: ioemu: Fix load of PCI-device IRQ state after save/restore. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14212^2~3 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=c1ab310e0811e3bbf24db62ffaa9adfb5407b4e0;p=xen.git ioemu: Fix load of PCI-device IRQ state after save/restore. From: Ian Jackson Signed-off-by: Keir Fraser --- diff --git a/tools/ioemu/hw/pci.c b/tools/ioemu/hw/pci.c index 250dfcb3c9..31ac04be78 100644 --- a/tools/ioemu/hw/pci.c +++ b/tools/ioemu/hw/pci.c @@ -101,7 +101,7 @@ int pci_device_load(PCIDevice *s, QEMUFile *f) int i; qemu_get_buffer(f, &irq_state, 1); for (i = 0; i < 4; i++) - pci_set_irq(s, i, !!(irq_state >> i)); + pci_set_irq(s, i, (irq_state >> i) & 1); } return 0; }